﻿using System;
using System.Collections.Generic;
using Jacobi.Vst.Core;
using NAudio.Midi;

namespace Play.AudioEngine
{
	class MidiManager
	{
		private readonly List<VstMidiEvent> _messages = new List<VstMidiEvent>();

		public MidiManager()
		{
			var inputDevice = new MidiIn(0);
			inputDevice.MessageReceived += (s, e) => InputDeviceOnMessageReceived(e);
			inputDevice.Start();
		}

		private void InputDeviceOnMessageReceived(MidiInMessageEventArgs message)
		{
		}

		public IEnumerable<VstMidiEvent> PopEvents()
		{
			lock (_messages)
			{
				throw new NotImplementedException();
			}
		}
	}
}
